import { Entity, Column, Unique, Index } from 'typeorm'
import { BaseEntity } from '../global'

@Entity('global_help')
export class GlobalHelp extends BaseEntity {
    @Column({ length: 256, comment: '问题' })
    question: string

    @Column({ length: 4096, default: '', comment: '答案' })
    answer: string

    @Column({ length: 2048, default: '', comment: '图片' })
    imgUrl: string

    @Column('int', { default: 0, comment: '0默认1问题2建议' })
    type: number
}
